//
//  ZCXMediaModel.m
//  LoveOfPet
//
//  Created by dllo on 15/11/14.
//  Copyright © 2015年 孔维. All rights reserved.
//

#import "ZCXMediaModel.h"

@implementation ZCXMediaModel
- (void)dealloc{
    [_user release];
    [_ID release];
    [_caption release];
    [_instagram_share_caption release];
    [_likes_count release];
    [_reposts_count release];
    [_video release];
    [super dealloc];
}
- (id)initWithDictionary:(NSDictionary *)dictionary{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dictionary];
    }
    return self;
}
+ (ZCXMediaModel *)ZCXMedioModelWithDictionary:(NSDictionary *)dictionary{
    ZCXMediaModel *medioaModel = [[ZCXMediaModel alloc]initWithDictionary:dictionary];
    return [medioaModel autorelease];
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    if ([key isEqualToString:@"id"]) {
        self.ID = value;
    }
}
@end
